//引入mongoosee
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test', {}, (err) => {
    if (err) {
        console.log('数据库连接失败');
        return;
    }
    console.log('数据库连接成功');
});
module.exports = mongoose